<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用反斜杠对文本字符串折行</title>
</head>

<body>
    <h1>JavaScript 字符串</h1>
    <p>您可以用反斜杠在文本字符串中进行换行。</p>
    <p id="demo"></p>
    <script>
        document.getElementById("demo").innerHTML = "Kitty";
    </script>
</body>

</html>